package otherTabs;

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JLabel;
import javax.swing.JPanel;

@SuppressWarnings("serial")
public class Home extends JPanel
{
	private JLabel title, name;
    private BufferedImage bImage;
    
	public Home()
	{	
        File file = new File("DataDO/kennyDOTool.png");
        try {
                bImage = ImageIO.read(file);
        } catch (IOException e) {
                e.printStackTrace();
        }
        
		Font font = new Font("Arial", Font.ITALIC | Font.BOLD, 50);
		setBackground(Color.BLACK);
		setForeground(Color.RED);
		
		title = new JLabel("Darkorbit tool v0.6.0");
		title.setForeground(Color.RED);
		title.setFont(font);
		
		add(title);
	}
	
	public void paintComponent(Graphics g) 
	{
        super.paintComponent(g);
        g.drawImage(bImage, 0, 0, 900, 500, null);
	}
}
